package com.rybbaby.tss.core.interceptors;

import java.util.Date;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.support.WebBindingInitializer;
import org.springframework.web.context.request.WebRequest;

/**
 * @description 绑定参数格式设置
 * 
 * @author 谢进伟
 * 
 * @createDate 2016-1-26 上午12:21:44
 */
public class WebParamsBinding implements WebBindingInitializer {
	
	public void initBinder(WebDataBinder binder , WebRequest request) {
		binder.registerCustomEditor(Date.class , new DateConvertEditor());
	}
}
